package com.cskaoyan.demo7.service;

import com.cskaoyan.demo7.bean.model.MarketIssue;
import com.cskaoyan.demo7.bean.model.MarketIssueExample;
import com.cskaoyan.demo7.mapper.MarketIssueMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description：
 * @Author：BLUEBLANK
 * @Date：2024/4/22 21:41
 */

@Service("issueService")
public class IssueServiceImpl implements IssueService {
    @Autowired
    private MarketIssueMapper marketIssueMapper;
    @Override
    public List<MarketIssue> list() {
        MarketIssueExample issueExample = new MarketIssueExample();
        issueExample.createCriteria().andDeletedEqualTo(false);
        List<MarketIssue> marketIssues = marketIssueMapper.selectByExample(issueExample);
        return marketIssues;
    }
}
